<head>
    <meta charset="UTF-8" />
    <title>springboot登录</title>
    <style type="text/css">
        ul li{
            list-style: none;
        }
    </style>
    <script type="text/javascript" src="./jquery-3.2.1.js"></script>
    <script >
        function testurl(){
            var username=$("#username").val();
            $.ajax({
                type:'get',
                url:"/loginVerify",
                data:{username:username},
//                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success:function (request) {
                    alert(request.message);
                }
            })
        }

    </script>
</head>
<body>
<div >
    <form name="form" accept-charset="utf-8"  action="/loginVerify" method="post">
        <ul >
            <li>
                <label for="username"  class="input-tips2">用户名：</label>
                <div class="inputOuter2">
                    <input type="text" id="username" name="username" maxlength="16" />
                </div>
            </li>
            <!--<li>-->
                <!--<label for="password" class="input-tips2">密码：</label>-->
                <!--<div >-->
                    <!--<input type="password" id="password"  name="password" maxlength="16"/>-->
                <!--</div>-->
            <!--</li>-->
            <li>
                <div >
                    <button type="button" onclick="testurl()">测试</button>
                </div>
            </li>
        </ul>
    </form>
</div>
</body>